package apollo.generator.modules.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <Description>
 * 表实体
 * @author Jun Lee
 * @version 1.0
 * @createDate 2020/07/04 16:58
 * @see apollo.generator.modules.entity
 */
public class TableEntity {
    /**
     * 表名称
     */
    private String tableName;
    /**
     * 注释
     */
    private String tableComment;
    /**
     * 数据库引擎
     */
    private String ENGINE;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 主键
     */
    @TableField(exist = false)
    private ColumnEntity pk;

    /**
     * 第一个字母大写
     */
    @TableField(exist = false)
    private String className;
    /**
     * 第一个字母小写
     */
    @TableField(exist = false)
    private String classname;

    @TableField(exist = false)
    private List<ColumnEntity> columnEntities;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableComment() {
        return tableComment;
    }

    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }

    public String getENGINE() {
        return ENGINE;
    }

    public void setENGINE(String ENGINE) {
        this.ENGINE = ENGINE;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public ColumnEntity getPk() {
        return pk;
    }

    public void setPk(ColumnEntity pk) {
        this.pk = pk;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public List<ColumnEntity> getColumnEntities() {
        return columnEntities;
    }

    public void setColumnEntities(List<ColumnEntity> columnEntities) {
        this.columnEntities = columnEntities;
    }
}
